<?php
abstract class UnitPlus{
	function accept(ArmyVisitor $visitor){
		//echo 111;
		$method = "visit".get_class($this);
		//var_dump($method);
		$visitor->$method($this);

	}


	protected function setDepth($depth){
		$this->depth = $depth;
	}

	function getDepth(){
		return $this->depth;
	}
}